package com.atwulidun.facade09;

public class DVDPlayer {
    // 饿汉式
    private static final DVDPlayer instance = new DVDPlayer();

    public static DVDPlayer getInstance() {
        return instance;
    }

    public static void on() {
        System.out.println("DVDPlayer on");
    }

    public static void off() {
        System.out.println("DVDPlayer off");
    }

    public static void play() {
        System.out.println("DVDPlayer is playing");
    }
    public static void pause() {
        System.out.println("DVDPlayer pauses");
    }
}
